import React, { Component } from 'react'
import { Route,Switch,Redirect } from 'react-router-dom';
import User from './pages/user'
import Home from './components/home'
import './App.css'
export default class App extends Component {
  render() {
    return (
      <div className="app"> 
        <Switch>
        <Route path="/home" component={Home} />
        <Route path="/user" component={User} />
        <Redirect to="/user" />
        </Switch>
      </div>
    )
  }
}


